<?php
echo "mysql test <br />";
$con = mysqli_connect("localhost","root","123");

if(!$con){
    echo "error";
    //die("could not connet: " . mysqli_error());
}else{
    echo "success <br />";
}

?>

<?php
$servername = "localhost";
$username = "root";
$password = "123";

try {
    $conn = new PDO("mysql:host=$servername;dbname=test1", $username, $password);
    echo "Connected successfully";
}
catch(PDOException $e)
{
    echo $e->getMessage();
}
?>


